package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.importRFCPanel.importPanelSubs.listeners;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.controller.importRFC.ImportRFC;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.importRFCPanel.ImportRFCPanel;
import ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.importRFCPanel.importPanelSubs.ImportRFCFunktionPanel;

public class ImportButtonListener implements ActionListener {
	private String path;
	private ImportRFCPanel importRFCPanel;

	public ImportButtonListener(ImportRFCPanel importRFCPanel,
			ImportRFCFunktionPanel impP) {
		this.path = impP.getPath();
		this.importRFCPanel = importRFCPanel;
	}

	public void actionPerformed(ActionEvent arg0) {
		
		new ImportRFC(importRFCPanel, path).start();

	}
}